﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ObjectAttribute.Model
{
    public class Equipment
    {
        /// <summary>
        /// 主键
        /// </summary>
        public string Guid { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 设备安装时间
        /// </summary>
        public DateTime? InstallationDate { get; set; }

        /// <summary>
        /// 上次维保时间
        /// </summary>
        public DateTime? LastMaintenanceTime { get; set; }

        /// <summary>
        /// 计划下次维保时间
        /// </summary>
        public DateTime? NextMaintenanceTime { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 生产公司
        /// </summary>
        public string ProductionCompany { get; set; }

        /// <summary>
        /// 额外的信息（JSON 格式）
        /// </summary>
        public string AdditionalInfo { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUser { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateUser { get; set; }

        /// <summary>
        /// 有效状态
        /// </summary>
        public bool? Valid { get; set; }

        /// <summary>
        /// 用户部门ID
        /// </summary>
        public string DeptGuid { get; set; }

        /// <summary>
        /// 设备地址
        /// </summary>
        public string Position { get; set; }

        /// <summary>
        /// 空间GUID
        /// </summary>
        public string SpaceGuid { get; set; }

        /// <summary>
        /// 状态，1：空闲中，2：使用中，3：维护中，4：借用中
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 负责人GUID
        /// </summary>
        public string AdministratorGuid { get; set; }

        /// <summary>
        /// 批号
        /// </summary>
        public string BatchNumber { get; set; }

        /// <summary>
        /// 在线状态读取点位GUID
        /// </summary>
        public string OnlineStatusConfig { get; set; }

        /// <summary>
        /// 维保公司GUID
        /// </summary>
        public string MaintenanceCompanyGuid { get; set; }

        /// <summary>
        /// 使用类型
        /// </summary>
        public int UseType { get; set; } = 0;

        /// <summary>
        /// 是否可被控制，0：否，1：是
        /// </summary>
        public bool? BeControlled { get; set; }

        /// <summary>
        /// 所属系统分类
        /// </summary>
        public string SystemClassification { get; set; }

        /// <summary>
        /// 注册码
        /// </summary>
        public string RegisterCode { get; set; }

        /// <summary>
        /// 注册状态键
        /// </summary>
        public string RegisterStateKey { get; set; }

        /// <summary>
        /// 注册状态GUID
        /// </summary>
        public string RegisterStateGuid { get; set; }

        /// <summary>
        /// 安装者
        /// </summary>
        public string Installer { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        public string Supplier { get; set; }

        /// <summary>
        /// 采购者
        /// </summary>
        public string Purchaser { get; set; }

        /// <summary>
        /// 采购时间
        /// </summary>
        public DateTime? PurchaseTime { get; set; }
    }
}
